package demo.android.com.mvpdemo.mvp2;

import demo.android.com.mvpdemo.mvp2.base.BaseModel;
import demo.android.com.mvpdemo.retrofit.RetrofitClient;
import demo.android.com.mvpdemo.retrofit.UserInfo;
import rx.Observable;

/**
 * Created by Vya on 2018/1/3 0003.
 */

public class UserInfoModel extends BaseModel implements UserInfoContract.UserInfoModel{

    //Model获取数据
    @Override
    public Observable<UserInfo> getUser(String token) {
        return RetrofitClient.getServiceApi()
                .queryUserInfo(token)
                .compose(RetrofitClient.<UserInfo>transformer());
    }



}
